.custom-wrapper {
    background-color: #1f8dd6;
    margin-bottom: 0.19em;
    -webkit-font-smoothing: antialiased;
    height: 2.01em;
    -webkit-transition: height 0.5s;
    -moz-transition: height 0.5s;
    -ms-transition: height 0.5s;
    transition: height 0.5s;
}

.custom-wrapper .pure-menu-link {
    color: #fff;
}
.custom-wrapper .pure-menu-selected > .pure-menu-link {
    color: #fa1;
}

.custom-wrapper.open {
    /**
     *总高度, 视菜单个数而定(`(1em + 0.5em * 2) * n + 0.3em`, n 为菜单个数)
     * 注: 需要设置全局字体大小 font-size, 否则 Chrome 和 Firefox 中表现不一致, 暂定16px
     */
    height: 12.03em;
}

.custom-menu-3 {
    text-align: right;
}

.custom-toggle {
    width: 2.125em;
    height: 2.125em;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    display: none;
}

.custom-toggle .bar {
    background-color: #fff;
    display: block;
    width: 1.25em;
    height: 0.125em;
    border-radius: 6.25em;
    position: absolute;
    top: 1em;
    right: 0.4375em;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

.custom-toggle .bar:first-child {
    -webkit-transform: translateY(-0.375em);
    -moz-transform: translateY(-0.375em);
    -ms-transform: translateY(-0.375em);
    transform: translateY(-0.375em);
}

.custom-toggle .bar:first-child + .bar + .bar {
    -webkit-transform: translateY(0.375em);
    -moz-transform: translateY(0.375em);
    -ms-transform: translateY(0.375em);
    transform: translateY(0.375em);
}

.custom-toggle.x .bar:first-child + .bar {
    visibility: hidden;
    -webkit-transition: visibility 0.18s;
    -moz-transition: visibility 0.18s;
    -ms-transition: visibility 0.18s;
    transition: visibility 0.18s;
}

.custom-toggle.x .bar:first-child {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.custom-toggle.x .bar:first-child + .bar + .bar {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

@media (max-width: 35.5em) {
    .custom-menu-3 {
        text-align: left;
    }

    .custom-toggle {
        display: block;
    }

    .custom-wrapper {
        overflow: hidden;
    }
    .custom-wrapper.open {
        overflow: auto;
        height: 16.03em;
    }

    .custom-wrapper.open .pure-menu-active > .pure-menu-children,
    .custom-wrapper.open .pure-menu-allow-hover:hover > .pure-menu-children {
        position: relative;
        text-indent: 1.3em;
    }
    .custom-wrapper.open .pure-menu-has-children.pure-menu-allow-hover:hover > .pure-menu-link:after {
        content: "\25BE";
    }
    .custom-wrapper .pure-menu-link {
        background-color: #1f8dd6;
    }
    .custom-wrapper .pure-menu-heading.custom-brand {
        background-color: #1f8dd6;
    }
}

.custom-wrapper .pure-menu-list > .pure-menu-children {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
}

.custom-wrapper .pure-menu-list .pure-menu-children > .pure-menu-item > a {
    background-color: #6fc6ff;
}

.pure-menu-active > .pure-menu-link,
.pure-menu-link:hover,
.pure-menu-link:focus {
    color: #fa1;
}

.pure-menu-heading,
.pure-menu-link {
    height: 1em;
    line-height: 1em;
}